package com.d3works.apps.account.service.debtrecovery;

import com.d3works.apps.account.db.Invoice;
import com.d3works.apps.account.db.Move;
import com.d3works.apps.account.db.MoveLine;
import com.d3works.exception.D3worksException;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

public interface DoubtfulCustomerInvoiceTermService {
  void createOrUpdateInvoiceTerms(
      Invoice invoice,
      Move newMove,
      List<MoveLine> invoicePartnerMoveLines,
      List<MoveLine> creditMoveLines,
      MoveLine debitMoveLine,
      LocalDate todayDate,
      BigDecimal amountRemaining)
      throws D3worksException;
}
